package com.zfjt.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 网站请求Demo
 * @author xk
 * @version 1.0
 * @date 2017年4月27日
 */
@Controller
public class lobalController2 {
	
	@RequestMapping(value="lobalController2",method = RequestMethod.POST)
	@ResponseBody
	public String addAnimal(HttpSession hseesion,HttpServletRequest req,HttpServletResponse rep){
		System.out.println("1111111111111111");
		String request = req.getParameter("xxx");
		String request1 = req.getParameter("yyy");
		System.out.println("22222222222222222" + request + "222222222" +request1 );
		return "1111111111";
	}
}
